﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace WebApi.Models
{
    public class Article : BaseModel
    {
        /// <summary>
        /// 所属分类
        /// </summary>
        public Category Categories { get; set; }
        /// <summary>
        /// 文章标题
        /// </summary>
        [BsonRepresentation(BsonType.ObjectId)]
        public string Title { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>
        public string Body { get; set; }
    }

}